package com.share.holder;

import com.share.constant.LogInfo;

public class LogContextHolder {
    private static final ThreadLocal<LogInfo> logInfoHolder = new ThreadLocal<>();

    public static void set(LogInfo logInfo) {
        logInfoHolder.set(logInfo);
    }

    public static LogInfo get() {
        return logInfoHolder.get();
    }

    public static void clear() {
        logInfoHolder.remove();
    }
}
